DISCUSSION
The
ATSUSetRunStyle function assigns new style runs or updates existing style runs. For uninitialized text layout objects,
ATSUSetRunStyle assigns new style runs; for initialized text layout objects, it updates replaces all previously set attributes, font features, and font variations in the
iStyle parameter. After completion,
ATSUSetRunStyle adjusts the lengths of the style runs on either side of the new or updated style run.
If the user deletes, inserts, or moves text in a text layout object and the range of text covers the entire text buffer, you should
You can then call the function
ATSUDrawText to display the updated text.
SPECIAL CONSIDERATIONS
You are responsible for disposing of the memory allocated for the new style run when you dispose of it. Calling the function
ATSUDisposeTextLayout will not do so.
ATSUSetRunStyle may allocate memory in your application heap, unless you designate a different heap by calling the function
ATSUCreateMemorySetting.